package com.zhifa.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhifa.dao.InstitutionDao;
import com.zhifa.entity.Institution;

@Service("institutionService")
public class InstitutionService {

	@Resource
	InstitutionDao institutionDao;
	
	public List<Institution> findInstitutionsByParentid(Integer parentid){
		return institutionDao.findInstitutionsByParentid(parentid);
	}
	
	
	public int addInstitution(Map<String, Object>map){
		
		return institutionDao.addInstitution(map);
	}
	
	public String findNameById(Integer id){
		return institutionDao.findNameById(id);
	}
}
